package fafica.br;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class AgendaF
 */

public class AgendaF extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
				
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	
		String nome=request.getParameter("nome");
		String email=request.getParameter("email");
		String telefone=request.getParameter("telefone");
		String data=request.getParameter("data");
		String interese=request.getParameter("interese");
		String horario=request.getParameter("horario");
		String mensagem=request.getParameter("mensagem");
		
		PrintWriter out=response.getWriter();
		response.setContentType("text/html");
		
		
		out.print("<html>");
		out.print("<body>");
		out.print("<br>");
		out.print("<h2>Dados Informados:</h2><br>");
		out.print("Nome: "+nome+"<br>");
		out.print("Email: "+email+"<br>");
		out.print("Telefone: "+telefone+"<br>");
		out.print("Data: "+data+"<br>");
		out.print("Interese: "+interese+"<br>");
		out.print("Horário: "+horario+"<br>");
		out.print("Mensagem: "+mensagem);
		out.print("</body>");
		out.print("</html>");
	}

}
